package com.vca.common.model.invoice;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Li
 * @description 发票记录表
 * @date 2023-02-08 15:54
 */

@Data
@TableName("vca_invoice_record")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="InvoiceRecord对象", description="发票记录表")
public class InvoiceRecord implements Serializable {

    private static final long serialVersionUID = 7256553336515444794L;

    @ApiModelProperty(value = "发票id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Integer uid;

    @ApiModelProperty(value = "发票订单id")
    private String invoiceOrderId;

    @ApiModelProperty(value = "发票类型（抬头类型） 1=个人发票 2=企业单位发票")
    private Integer type;

    @ApiModelProperty(value = "个人名称")
    private String name;

    @ApiModelProperty(value = "公司名称")
    private String corporateName;

    @ApiModelProperty(value = "公司税号")
    private String companyTaxNumber;

    @ApiModelProperty(value = "发票金额")
    private BigDecimal price;

    @ApiModelProperty(value = "开票邮箱")
    private String email;

    @ApiModelProperty(value = "是否为红冲发票 0=正常发票 1=红冲发票")
    private Integer creditNote;

    @ApiModelProperty(value = "参加开票的子订单数量")
    private Integer orderInfoTotal;

    @ApiModelProperty(value = "开票状态 0=开票中 1=已开票 2=已取消 3=开票失败")
    private Integer status;

    @ApiModelProperty(value = "发票链接地址")
    private String url;

    @ApiModelProperty(value = "申请时间")
    private Date createTime;
}
